function MyMapControl(anchor,offsetx,offsety,htmlContent){
	 this.defaultAnchor = anchor;  
	 this.defaultOffset = new BMap.Size(offsetx, offsety);
	 this.htmlContent = htmlContent;
};

MyMapControl.prototype = new BMap.Control();

MyMapControl.prototype.initialize = function(map){
  var div = $(this.htmlContent);
  map.getContainer().appendChild(div[0]);
  return div[0];
};